package com.newjiabo.ski.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.newjiabo.common.annotation.Excel;
import com.newjiabo.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 更多服务套餐关联对象 ski_set_meal_services_rel
 *
 * @author CaoMengHui
 * @date 2023-09-19
 */
@ApiModel(value = "更多服务套餐关联对象")
public class SkiSetMealServicesRel {
    private static final long serialVersionUID = 1L;

    /**
     * 套餐id
     */
    @ApiModelProperty(value = "套餐id")
    @Excel(name = "套餐id")
    private String setMealId;

    /**
     * 雪场id
     */
    @ApiModelProperty(value = "雪场id")
    @Excel(name = "雪场id")
    private String servicesId;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public SkiSetMealServicesRel(String setMealId, String servicesId) {
        this.setMealId = setMealId;
        this.servicesId = servicesId;
    }

    public SkiSetMealServicesRel() {
    }

    public String getSetMealId() {
        return setMealId;
    }

    public void setSetMealId(String setMealId) {
        this.setMealId = setMealId;
    }

    public String getServicesId() {
        return servicesId;
    }

    public void setServicesId(String servicesId) {
        this.servicesId = servicesId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("setMealId", getSetMealId())
                .append("servicesId", getServicesId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}
